package com.ruoyi.system.mobile.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 巡护记录视图对象 mall_package
 *
 * @author ruoyi
 * @date 2021-05-20
 */
@Data
@ApiModel("巡护记录视图对象")
public class PatrolRecordVo {
	private static final long serialVersionUID = 1L;

	/** 主键id */
	@ApiModelProperty("主键id")
	private Long id;

	/** 姓名 */
	@ApiModelProperty("巡护人员姓名")
	private String name;

	/** 开始时间 */
	@Excel(name = "开始时间" , width = 30, dateFormat = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty("开始时间")
	private Date beginTime;

	/** 结束时间 */
	@Excel(name = "结束时间" , width = 30, dateFormat = "yyyy-MM-dd")
	@ApiModelProperty("结束时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableId(value = "end_time")
	private Date endTime;
}
